
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 订单状态  1：未支付 2：已支付 3：已废弃
 * </p>
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum OrderStatusEnum {

    UNPAID("1", "未支付"),
    PAID("2", "已支付"),
    OBSOLETE("3", "已废弃");
    private final String value;
    private final String description;

    public static OrderStatusEnum find(String val) {
        for (OrderStatusEnum dataScopeEnum : OrderStatusEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
